/*
** xopen.c for galaf in /home/compilation/galaf-lib
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Sat Mar 24 02:15:05 2012 christophe labonnemartinez
** Last update Sat Aug 11 12:44:23 2012 christophe labonnemartinez
*/

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include "includes/my.h"

int	xopen(const char *path, int flags, int mode)
{
  int	fd;

  if ((fd = open(path, flags, mode)) == -1)
    exit(EXIT_FAILURE);
  return (fd);
}
